x < 12 | y > 10 | x < 12 || y > 10 |
---|---|---|
F | F | F |
F | T | T |
T | F | T |
T | T | T |
Following a conventional order for the truth values in the rows helps prevent mistakes. This table follows the conventional order for two operands:
A | B | expression |
---|---|---|
F | F | - |
F | T | - |
T | F | - |
T | T | - |
Here, A
and B
represent operands.
Often these are relational expressions such as x<12
.
The conventional order is easy to remember if you think of F as 0 and T as 1.
Arrange the rows in ascending numerical order, as follows:
A | B | expression |
---|---|---|
0 | 0 | - |
0 | 1 | - |
1 | 0 | - |
1 | 1 | - |
Courses on digital logic usually use 0 for false and 1 for true and use truth tables such as the above.
The conventional order is also used with tables with more than two operands.
With three operands, a table has eight rows.
With N
operands, a table has 2N
rows.
Fill in the labels "0" and "1" for the first table. Then fill in the "F" and "T" equivalent labels in the second.